import dayjs from 'dayjs'
export const dateFormat = (date: Date | string | null): string => {
  if (!date) return ''
  const r = dayjs(date).format('YYYY年MM月DD日')
  return r
}
export const dateTimeFormat = (dateTime: Date | string | null): string => {
  if (!dateTime) return ''
  const r = dayjs(dateTime).format('YYYY年MM月DD日HH时mm分ss秒')
  return r
}
